import request from '@/utils/request'

export default {
    //根据手机号发验证码
  sendCode(imgCode,imgKey,phone) {
    return request({
      url: '/sms/send?imgCode='+imgCode+'&imgKey='+imgKey+'&to='+phone,
      method: 'get'
    })
  },

  //注册的方法
  registerMember(formItem) {
    return request({
      url: `/member/reg`,
      method: 'post',
      data: formItem
    })
  },

  //生成图形验证码
  getImgCode() {
    return request({
      url: `/kaptcha/generate`,
      method: 'get',
    })
  }

}
